package com.water.devtool;

import java.io.File;

import com.watermud.util.StringUtil;

public class FileList {
	public String getFileList(String dir) {
		File d = new File(dir);
		File[] fs = d.listFiles();
		StringBuilder str = new StringBuilder();
		for (int i = 0; i < fs.length; i++) {
			str.append("Source: \"").append(fs[i].getName())
					.append("\"; DestDir: \"{app}\"")
					.append(StringUtil.getLineSeparator());
		}
		return str.toString();
	}

	public static void main(String[] args) {
		FileList l = new FileList();
		System.out.println(l.getFileList("F:\\nci资料\\新建文件夹 (3)\\Setup"));
	}
}
